home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / unzip42.zip / MSDOS.ZIP / MAKEFILE.CR < prev   
Text File  |  1992-03-07  |  4KB  |  118 lines

  1. #  Makefile.DOS    Makefile for UnZip 4.x, using Microsoft C Compiler 5.0
  2. #   [crypt]        and Microsoft MAKE 4.02 (or later versions), or Borland
  3. #   [no inflate]   Turbo C 2.0.  Comment/uncomment the appropriate sections
  4. #                  below and/or edit the Include and Library paths, if 
  5. #                  necessary.  For Borland C++ use the newer project files
  6. #                  which are also included (but read the comments in Contents).
  7. #
  8. #                  Users of MSC 6.0 and NMAKE should use the regular makefile
  9. #                  by typing "nmake msc_dos" or "nmake msc_os2".
  10. #
  11. #  Notes:  (1) Uncomment the appropriate compiler/OS options below.
  12. #          (2) Change the various CFLAGS as appropriate for your environment
  13. #              and libraries.
  14. #              For MSC:  -AS specifies small-model library, and -G2 enables
  15. #              80286 instructions.  QuickC uses the medium memory model, as
  16. #              I recall (-AM and/or -qc).  The "ALL:" target is used by MSC
  17. #              6.0 with old MAKE.  [Bo Kullmar]
  18. #          (3) Rename this file to "unzip" on a DOS system; typing "make
  19. #              unzip" with MSC (or "make -funzip" with TC) then builds
  20. #              unzip.exe.
  21. #
  22. #  Greg Roelofs
  23. #
  24.  
  25. #####################
  26. # MACRO DEFINITIONS #
  27. #####################
  28.  
  29. # Borland C++ 2.0 for MS-DOS:
  30. # ----------------------
  31. # bcc is usually configured with -I and -L set appropriately...
  32. # CC = bcc
  33. # CFLAGS = -ms -O -Z -DCRYPT
  34. # INCL = #-Ic:\borland\include
  35. # LD = bcc
  36. # LDFLAGS = -ms #-Lc:\borland\lib
  37. # LDFLAGS2 =
  38.  
  39. # Turbo C 2.0 for MS-DOS:
  40. # ----------------------
  41. # tcc is usually configured with -I and -L set appropriately...
  42. # CC = tcc
  43. # CFLAGS = -ms -O -Z -DCRYPT
  44. # INCL = #-Ic:\turboc\include
  45. # LD = tcc
  46. # LDFLAGS = -ms #-Lc:\turboc\lib
  47. # LDFLAGS2 =
  48.  
  49. # MSC for MS-DOS:
  50. # --------------
  51. CC = cl
  52. CFLAGS = -AS -Ox -G2 -DCRYPT  # add -FPi87 if coprocessor installed
  53. INCL =
  54. LD = link
  55. LDFLAGS = /NOI
  56. LDFLAGS2 = ,$*;
  57.  
  58. # MSC with SDK for OS/2:      # this target no longer supported:  use Makefile
  59. # ---------------------       # (if you MUST use this target, add dosname.obj
  60. # CC = cl                     #   to OBJS and the dependencies line below)
  61. # CFLAGS = -AS -Ox -G2 -DOS2 -DCRYPT
  62. # INCL = -Ic:\m5\include      # for example
  63. # LD = link
  64. # LDFLAGS = /NOI
  65. # RM = del
  66. # LIBC = c:\m5\lib\p\slibce
  67. # LIBD = c:\m5\lib\doscalls.lib
  68. # LIBA = c:\m5\lib\api.lib
  69.  
  70. OBJS = unzip.obj crypt.obj extract.obj file_io.obj mapname.obj match.obj\
  71.        misc.obj unimplod.obj unreduce.obj unshrink.obj
  72.  
  73.  
  74. ###############################################
  75. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  76. ###############################################
  77.  
  78. ALL    : unzip.exe
  79.  
  80. .c.obj:
  81.         $(CC) -c $(CFLAGS) $(INCL) $*.c
  82.  
  83. unzip.obj:      unzip.c unzip.h
  84.  
  85. crypt.obj:      crypt.c unzip.h zip.h
  86.  
  87. extract.obj:    extract.c unzip.h
  88.  
  89. file_io.obj:    file_io.c unzip.h
  90.  
  91. mapname.obj:    mapname.c unzip.h
  92.  
  93. match.obj:      match.c unzip.h
  94.  
  95. misc.obj:       misc.c unzip.h
  96.  
  97. unimplod.obj:   unimplod.c unzip.h
  98.  
  99. unreduce.obj:   unreduce.c unzip.h
  100.  
  101. unshrink.obj:   unshrink.c unzip.h
  102.  
  103. # DOS:
  104. # ---
  105. unzip.exe:     $(OBJS)
  106.         $(LD) $(LDFLAGS) $(OBJS) $(LDFLAGS2)
  107.  
  108. # OS/2:
  109. # ----
  110. # unziptmp.exe:  $(OBJS)
  111. #         $(LD) $(LDFLAGS) $(OBJS), $*.exe,,$(LIBC)+$(LIBD);
  112. #
  113. # unzip.exe:     unziptmp.exe
  114. #         bind unziptmp.exe $(LIBD) $(LIBA) -o unzip.exe
  115. #         $(RM) unziptmp.exe
  116. #         $(RM) *.obj
  117. #         $(RM) *.map
  118.